<template>
  <div id="dz_market" class="page in">
    <div class="container">
      <header>
        <a @click="$utils.gotopage('','back')" class="pa back"></a>
        <p>公告</p>
      </header>

      <div class="price-wrap" style="background: none">
        <div class="configInfo-li marketInfo-li">
          <div class="flex-wrap-between config-other" style="    display: flex;
    justify-content: center;">
            <p>{{modelinfo.title}}</p>
            
          </div>
          <div class="flex-wrap-between config-other" style="    display: flex;
    justify-content: flex-end;">
           
            <p>{{modelinfo.create_time}}</p>
          </div>
          <div class="flex-wrap-between config-other" >
           
            <view class="uni-common-mt" style="background:#FFF; padding:20rpx;">
                <rich-text :nodes="modelinfo.centent"></rich-text>
            </view>

          </div>
        </div>
      </div>
    </div>
  </div>
</template>


<script>
var mySelf;
export default {
  data() {
    return {
      modelinfo: [],
      param: [],
    };
  },
  beforeCreate() {
    this.$myUtils.isLoginGotoPage();
  },
  onLoad(param) {
    this.param = param;
  },
  methods: {
    init: function () {
      uni.showToast({
        title: "正在加载数据",
        icon: "loading",
        duration: 300,
      });

      let id = this.param["id"];
      this.$myUtils
        .myRequest({
          url: "/Announcement/view",
          data: { a_id: id },
          method: "POST",
        })
        .then((res) => {
 
          mySelf.modelinfo = res.data.data;
        });
    },
    ufgoto: function () {},
  },
  mounted() {
    mySelf = this;
    this.init();
  },
};
</script>